package Test3;

/**
 * 有以下学员信息：
 * 		张三,男,20,79.5
 * 		李四,女,21,80.2
 * 		王五,男,22,77.9
 * 		周六,男,20,55.8
 * 		赵七,女,21,99.9
 * 	请定义学员类，属性：姓名、性别、年龄、分数
 * 	请编写测试类，创建5个对象，分别存储上述值，
 * 	并计算5名学员的“平均分”(四舍五入到小数点后2位)。
 */
public class Student1 {
    private String name;
    private String gender;
    private int age;
    private double score;

    public Student1() {
    }

     Student1(String name, String gender, int age, double score) {
        this.name = name;
        this.gender = gender;
        this.age = age;
        this.score = score;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public double getScore() {
        return score;
    }

    public void setScore(double score) {
        this.score = score;
    }
}
